package com.ztmmm.module.qu.mapper;

import com.ztmmm.module.qu.entity.QuAnswer;
import com.ztmmm.module.qu.entity.QuRepo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 试题题库 Mapper 接口
 * </p>
 *
 * @author ztm
 * @since 2023-03-21
 */
@Mapper
public interface QuRepoMapper extends BaseMapper<QuRepo> {
    @Select("select repo_id from el_qu_repo where qu_id = #{quId}")
    List<String> selectByQid(String quId);
    @Delete("delete from el_qu_repo where qu_id = #{quId}")
    int delByQid(String quId);
}
